mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 11:07:32 +08:00
Fix optinal etc.
This commit is contained in:
@@ -803,13 +803,13 @@ async () => {
|
||||
//#endregion
|
||||
|
||||
// #region Haptic
|
||||
Haptic.impact(Haptic.ImpactFeedbackStyle.Heavy);
|
||||
Haptic.impact(Haptic.ImpactFeedbackStyle.Light);
|
||||
Haptic.impact(Haptic.ImpactFeedbackStyle.Medium);
|
||||
Haptic.impact(Haptic.ImpactStyles.Heavy);
|
||||
Haptic.impact(Haptic.ImpactStyles.Light);
|
||||
Haptic.impact(Haptic.ImpactStyles.Medium);
|
||||
|
||||
Haptic.notification(Haptic.NotificationFeedbackType.Error);
|
||||
Haptic.notification(Haptic.NotificationFeedbackType.Success);
|
||||
Haptic.notification(Haptic.NotificationFeedbackType.Error);
|
||||
Haptic.notification(Haptic.NotificationType.Error);
|
||||
Haptic.notification(Haptic.NotificationType.Success);
|
||||
Haptic.notification(Haptic.NotificationType.Error);
|
||||
|
||||
Haptic.selection();
|
||||
// #endregion
|
||||
|
||||
24
types/expo/index.d.ts
vendored
24
types/expo/index.d.ts
vendored
@@ -2943,11 +2943,11 @@ export namespace MediaLibrary {
|
||||
|
||||
// region Asset
|
||||
interface AssetAndroid {
|
||||
albumId: string;
|
||||
albumId?: string;
|
||||
}
|
||||
|
||||
interface AssetIos {
|
||||
mediaSubtypes: MediaType[];
|
||||
mediaSubtypes?: MediaType[];
|
||||
// *
|
||||
orientation: number;
|
||||
// *
|
||||
@@ -2965,11 +2965,11 @@ export namespace MediaLibrary {
|
||||
modificationTime: number;
|
||||
duration: number;
|
||||
// *
|
||||
localUri: string;
|
||||
localUri?: string;
|
||||
// *
|
||||
location: object;
|
||||
location?: Location.LocationProps;
|
||||
// *
|
||||
exif: object;
|
||||
exif?: object;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2979,15 +2979,15 @@ export namespace MediaLibrary {
|
||||
|
||||
// #region Album
|
||||
interface AlbumIos {
|
||||
type: string;
|
||||
type?: string;
|
||||
// *
|
||||
startTime: number;
|
||||
// *
|
||||
endTime: number;
|
||||
// *
|
||||
approximateLocation: Location.LocationProps;
|
||||
approximateLocation?: Location.LocationProps;
|
||||
// *
|
||||
locationNames: string[];
|
||||
locationNames?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3029,16 +3029,16 @@ export namespace Haptic {
|
||||
* Used to let a user know when a selection change has been registered
|
||||
*/
|
||||
function selection(): void;
|
||||
function notification(type: NotificationFeedbackType): void;
|
||||
function impact(style: ImpactFeedbackStyle): void;
|
||||
function notification(notificationType?: NotificationType): void;
|
||||
function impact(impactStyles?: ImpactStyles): void;
|
||||
|
||||
enum ImpactFeedbackStyle {
|
||||
enum ImpactStyles {
|
||||
Light = 'light',
|
||||
Medium = 'medium',
|
||||
Heavy = 'heavy'
|
||||
}
|
||||
|
||||
enum NotificationFeedbackType {
|
||||
enum NotificationType {
|
||||
Success = 'success',
|
||||
Warning = 'warning',
|
||||
Error = 'error'
|
||||
|
||||
Reference in New Issue
Block a user