Skip to content

Commit 65e77f0

Browse files
committed
chore doc update
1 parent bdedfc5 commit 65e77f0

File tree

8 files changed

+68
-22
lines changed

8 files changed

+68
-22
lines changed

src/bottom-navigation/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class BottomNavigation extends TabNavigationBase {
5454
*/
5555
public static selectedIndexChangedEvent: string;
5656

57-
/**
57+
/**
58+
* @hidden
5859
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
5960
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
6061
* @param callback - Callback function which will be executed when event is raised.

src/bottomsheet/bottomsheet.d.ts

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,68 @@ export { BottomSheetOptions };
55

66
export declare abstract class ViewWithBottomSheetBase extends View {
77
// used when triggering the closing of the bottomsheet
8-
protected _closeBottomSheetCallback: Function;
8+
/**
9+
* @hidden
10+
*/
11+
protected _closeBottomSheetCallback: Function;
912
// used when the bottomSheet is dismissed
10-
public _onDismissBottomSheetCallback: Function;
11-
_bottomSheetFragment: any; // com.google.android.material.bottomsheet.BottomSheetDialogFragment
12-
protected abstract _hideNativeBottomSheet(parent: any, whenClosedCallback: any): void;
13-
protected _bottomSheetContext: any;
13+
/**
14+
* @hidden
15+
*/
16+
public _onDismissBottomSheetCallback: Function;
17+
/**
18+
* @hidden
19+
*/
20+
_bottomSheetFragment: any; // com.google.android.material.bottomsheet.BottomSheetDialogFragment
21+
/**
22+
* @hidden
23+
*/
24+
protected abstract _hideNativeBottomSheet(parent: any, whenClosedCallback: any): void;
25+
/**
26+
* @hidden
27+
*/
28+
protected _bottomSheetContext: any;
29+
/**
30+
* @hidden
31+
*/
1432
_raiseShownBottomSheetEvent(): void;
1533
public _bottomSheetClosed(): void;
34+
/**
35+
* @hidden
36+
*/
1637
protected abstract _showNativeBottomSheet(parent: View, options: BottomSheetOptions): void;
17-
protected _commonShowNativeBottomSheet(parent: View, options: BottomSheetOptions): void;
38+
/**
39+
* @hidden
40+
*/
41+
protected _commonShowNativeBottomSheet(parent: View, options: BottomSheetOptions): void;
42+
43+
/**
44+
* @hidden
45+
*/
1846
protected _raiseShowingBottomSheetEvent(): void;
47+
48+
49+
/**
50+
* closes the current BottomSheet
51+
*
52+
* @param args anything you want as a result of the `showBottomSheet` Promise
53+
*/
1954
public closeBottomSheet(...args: any): void;
2055

21-
public showBottomSheet(options: BottomSheetOptions): ViewBase;
56+
57+
/**
58+
* shows a modal BottomSheet
59+
*
60+
* @param {BottomSheetOptions} options
61+
* @returns {View} view - the view shown in the BottomSheet
62+
*/
63+
public showBottomSheet(options: BottomSheetOptions): View;
2264
}
2365
export function install(): void;
2466

2567
declare module '@nativescript/core/ui/core/view' {
2668
interface View {
2769
closeBottomSheet(...args: any): void;
28-
showBottomSheet(options: BottomSheetOptions): ViewBase;
70+
showBottomSheet(options: BottomSheetOptions): View;
2971
}
3072
}

src/core/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Color, LengthPercentUnit, PercentLength } from '@nativescript/core';
22

33
declare module '@nativescript/core/ui/core/view' {
44
interface View {
5-
clearFocus();
6-
requestFocus();
5+
clearFocus():void;
6+
requestFocus():void;
77
}
88
}
99

src/core/tab-navigation-base/tab-navigation-base/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export class TabNavigationBase extends View {
5656
*/
5757
public static selectedIndexChangedEvent: string;
5858

59-
/**
59+
/**
60+
* @hidden
6061
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
6162
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
6263
* @param callback - Callback function which will be executed when event is raised.

src/core/tab-navigation-base/tab-strip-item/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export class TabStripItem extends View {
5252
static unselectEvent: string;
5353
//@endprivate
5454

55-
/**
55+
/**
56+
* @hidden
5657
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
5758
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
5859
* @param callback - Callback function which will be executed when event is raised.

src/core/tab-navigation-base/tab-strip/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export class TabStrip extends View {
5050
*/
5151
public static itemTapEvent: string;
5252

53-
/**
53+
/**
54+
* @hidden
5455
* A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
5556
* @param eventNames - String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").
5657
* @param callback - Callback function which will be executed when event is raised.

tsconfig.doc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"sourceMap": false,
66
"plugins": []
77
},
8-
"include":["packages/**/*.d.ts"],
9-
"exclude": ["**/*android*", "**/*ios*"]
8+
"include": ["src/**/*.d.ts"],
9+
"exclude": ["**/*android*", "**/*ios*", "**/typings/*"]
1010
}

typedoc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports = {
2-
mode: 'modules',
2+
// mode: 'modules',
33
out: 'docs',
4-
exclude: ['**/node_modules/**', '**/*.spec.ts'],
4+
exclude: ['**/node_modules/**', '**/*.spec.ts', '*typings*'],
55
name: 'Nativescript UI Material Components',
6-
excludePrivate: true,
7-
ignoreCompilerErrors: true,
8-
excludeNotExported: true,
9-
includeDeclarations: true,
6+
// excludePrivate: true,
7+
// ignoreCompilerErrors: true,
8+
// excludeNotExported: true,
9+
// includeDeclarations: true,
1010
excludePrivate: true,
1111
excludeExternals: true,
1212
tsconfig: 'tsconfig.doc.json',

0 commit comments

Comments
 (0)