docs/libs/typescript.js
function getTypingNamesFromJson(jsonPath, filesToWatch) {
                if (host.fileExists(jsonPath)) {
                    filesToWatch.push(jsonPath);
                }
                var result = ts.readConfigFile(jsonPath, function (path) { return host.readFile(path); });
                if (result.config) {
                    var jsonConfig = result.config;
                    if (jsonConfig.dependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.dependencies));
                    }
                    if (jsonConfig.devDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.devDependencies));
                    }
                    if (jsonConfig.optionalDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.optionalDependencies));
                    }
                    if (jsonConfig.peerDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.peerDependencies));
                    }
                }
            }
function getTypingNamesFromJson(jsonPath, filesToWatch) {
                if (host.fileExists(jsonPath)) {
                    filesToWatch.push(jsonPath);
                }
                var result = ts.readConfigFile(jsonPath, function (path) { return host.readFile(path); });
                if (result.config) {
                    var jsonConfig = result.config;
                    if (jsonConfig.dependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.dependencies));
                    }
                    if (jsonConfig.devDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.devDependencies));
                    }
                    if (jsonConfig.optionalDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.optionalDependencies));
                    }
                    if (jsonConfig.peerDependencies) {
                        mergeTypings(ts.getOwnKeys(jsonConfig.peerDependencies));
                    }
                }
            }
function getTypingNamesFromJson ( jsonPath , filesToWatch ) { if ( host . fileExists ( jsonPath ) ) { filesToWatch . push ( jsonPath ) ; } var result = ts . readConfigFile ( jsonPath , function ( path ) { return host . readFile ( path ) ; } ) ; if ( result . config ) { var jsonConfig = result . config ; if ( jsonConfig . dependencies ) { mergeTypings ( ts . getOwnKeys ( jsonConfig . dependencies ) ) ; } if ( jsonConfig . devDependencies ) { mergeTypings ( ts . getOwnKeys ( jsonConfig . devDependencies ) ) ; } if ( jsonConfig . optionalDependencies ) { mergeTypings ( ts . getOwnKeys ( jsonConfig . optionalDependencies ) ) ; } if ( jsonConfig . peerDependencies ) { mergeTypings ( ts . getOwnKeys ( jsonConfig . peerDependencies ) ) ; } } }
Get the typing info from common package manager json files like package.json or bower.json
Get the typing info from common package manager json files like package . json or bower . json