Skip to content

Commit 81f0179

Browse files
authored
Merge pull request NativeScript#2326 from NativeScript/hdeshev/fix-dts-build-check
Fix ts:buildDts check
2 parents 6c9dc46 + 1a88cf0 commit 81f0179

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

gruntfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,16 +419,17 @@ module.exports = function(grunt) {
419419
},
420420
buildDts: {
421421
src: [
422-
'**/*.d.ts',
422+
'tns-core-modules/**/*.d.ts',
423423
'!org.nativescript.widgets.d.ts',
424424
'!**/*.android.d.ts',
425425
'!node_modules/**/*',
426426
'!tests/node_modules/**/*.*',
427427
'!tests/platforms/**/*.*',
428428
'!bin/**/*',
429429
'!apps/**/*',
430-
'!android17.d.ts',
431-
'!ios.d.ts',
430+
'!tns-core-modules/android17.d.ts',
431+
'!tns-core-modules/ios.d.ts',
432+
'!tns-core-modules/org.nativescript.widgets.d.ts',
432433
],
433434
outDir: localCfg.outDir,
434435
dest: localCfg.outDir,

tns-core-modules/ui/frame/frame.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ declare module "ui/frame" {
351351
//@private
352352
function reloadPage(): void;
353353
function resolvePageFromEntry(entry: NavigationEntry): pages.Page;
354-
function setFragmentCallbacks(fragment: android.app.Fragment): void;
355-
function setActivityCallbacks(activity: android.app.Activity): void;
354+
function setFragmentCallbacks(fragment: any /*android.app.Fragment*/): void;
355+
function setActivityCallbacks(activity: any /*android.app.Activity*/): void;
356356
//@endprivate
357-
}
357+
}

0 commit comments

Comments
 (0)