Skip to content

Commit

Permalink
fix(types): update types
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Apr 14, 2018
1 parent 09ae48e commit bd758e8
Show file tree
Hide file tree
Showing 25 changed files with 1,566 additions and 1,567 deletions.
16 changes: 8 additions & 8 deletions packages/@jxa/types/src/core/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,57 +81,57 @@ export interface Calendar {
* @param option
*
*/
createCalendar(option?: Calendar.CreateCalendarOptionalParameter): void
createCalendar(option?: Calendar.CreateCalendarOptionalParameter): void;

/**
* Tell the application to reload all calendar files contents
*
*/
reloadCalendars(): void
reloadCalendars(): void;

/**
* Show calendar on the given view
* @param option
*
*/
switchView(option?: Calendar.SwitchViewOptionalParameter): void
switchView(option?: Calendar.SwitchViewOptionalParameter): void;

/**
* Show calendar on the given date
* @param option
*
*/
viewCalendar(option?: Calendar.ViewCalendarOptionalParameter): void
viewCalendar(option?: Calendar.ViewCalendarOptionalParameter): void;

/**
* Subscribe to a remote calendar through a webcal or http URL
* @param directParameter the iCal URL
*
*/
getURL(directParameter: string, ): void
getURL(directParameter: string, ): void;

/**
* Show the event or to-do in the calendar window
* @param directParameter the item
*
*/
show(directParameter: any, ): void
show(directParameter: any, ): void;

/**
* undefined
* @param option
* @return The new object.
*/
make(option?: Calendar.MakeOptionalParameter): any
make(option?: Calendar.MakeOptionalParameter): any;

/**
* undefined
*
*/
save(): void
save(): void;
}
16 changes: 8 additions & 8 deletions packages/@jxa/types/src/core/Contacts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,59 +117,59 @@ export interface Contacts {
* @param option
* @return The new object.
*/
make(option?: Contacts.MakeOptionalParameter): any
make(option?: Contacts.MakeOptionalParameter): any;

/**
* Add a child object.
* @param directParameter object to add.
* @param option
* @return undefined
*/
add(directParameter: any, option?: Contacts.AddOptionalParameter): any
add(directParameter: any, option?: Contacts.AddOptionalParameter): any;

/**
* Remove a child object.
* @param directParameter object to remove.
* @param option
* @return undefined
*/
remove(directParameter: any, option?: Contacts.RemoveOptionalParameter): any
remove(directParameter: any, option?: Contacts.RemoveOptionalParameter): any;

/**
* Save all Address Book changes. Also see the unsaved property for the application class.
* @return undefined
*/
save(): any
save(): any;

/**
* RollOver - Which property this roll over is associated with (Properties can be one of maiden name, phone, email, url, birth date, custom date, related name, aim, icq, jabber, msn, yahoo, address.)
* @return undefined
*/
actionProperty(): string
actionProperty(): string;

/**
* RollOver - Returns the title that will be placed in the menu for this roll over
* @param option
* @return undefined
*/
actionTitle(option?: Contacts.ActionTitleOptionalParameter): string
actionTitle(option?: Contacts.ActionTitleOptionalParameter): string;

/**
* RollOver - Performs the action on the given person and value
* @param option
* @return undefined
*/
performAction(option?: Contacts.PerformActionOptionalParameter): boolean
performAction(option?: Contacts.PerformActionOptionalParameter): boolean;

/**
* RollOver - Determines if the rollover action should be enabled for the given person and value
* @param option
* @return undefined
*/
shouldEnableAction(option?: Contacts.ShouldEnableActionOptionalParameter): boolean
shouldEnableAction(option?: Contacts.ShouldEnableActionOptionalParameter): boolean;
}
26 changes: 13 additions & 13 deletions packages/@jxa/types/src/core/DatabaseEvents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,97 +162,97 @@ export interface DatabaseEvents {
* @param option
*
*/
close(directParameter: any, option?: DatabaseEvents.CloseOptionalParameter): void
close(directParameter: any, option?: DatabaseEvents.CloseOptionalParameter): void;

/**
* Return the number of elements of a particular class within an object.
* @param directParameter the object for the command
* @param option
* @return undefined
*/
count(directParameter: any, option?: DatabaseEvents.CountOptionalParameter): number
count(directParameter: any, option?: DatabaseEvents.CountOptionalParameter): number;

/**
* Delete an object.
* @param directParameter the object for the command
*
*/
delete(directParameter: any, ): void
delete(directParameter: any, ): void;

/**
* Copy object(s) and put the copies at a new location.
* @param directParameter the object for the command
* @param option
*
*/
duplicate(directParameter: any, option?: DatabaseEvents.DuplicateOptionalParameter): void
duplicate(directParameter: any, option?: DatabaseEvents.DuplicateOptionalParameter): void;

/**
* Verify if an object exists.
* @param directParameter the object for the command
* @return undefined
*/
exists(directParameter: any, ): boolean
exists(directParameter: any, ): boolean;

/**
* Get the data for an object.
* @param directParameter the object for the command
* @return undefined
*/
get(directParameter: any, ): any
get(directParameter: any, ): any;

/**
* Make a new object.
* @param option
* @return undefined
*/
make(option?: DatabaseEvents.MakeOptionalParameter): any
make(option?: DatabaseEvents.MakeOptionalParameter): any;

/**
* Move object(s) to a new location.
* @param directParameter the object for the command
* @param option
*
*/
move(directParameter: any, option?: DatabaseEvents.MoveOptionalParameter): void
move(directParameter: any, option?: DatabaseEvents.MoveOptionalParameter): void;

/**
* Open an object.
* @param directParameter The file(s) to be opened.
* @return undefined
*/
open(directParameter: any, ): any
open(directParameter: any, ): any;

/**
* Print an object.
* @param directParameter The file(s) or document(s) to be printed.
* @param option
*
*/
print(directParameter: any, option?: DatabaseEvents.PrintOptionalParameter): void
print(directParameter: any, option?: DatabaseEvents.PrintOptionalParameter): void;

/**
* Quit an application.
* @param option
*
*/
quit(option?: DatabaseEvents.QuitOptionalParameter): void
quit(option?: DatabaseEvents.QuitOptionalParameter): void;

/**
* Save an object.
* @param directParameter the object for the command
* @param option
*
*/
save(directParameter: any, option?: DatabaseEvents.SaveOptionalParameter): void
save(directParameter: any, option?: DatabaseEvents.SaveOptionalParameter): void;

/**
* Set an object's data.
* @param directParameter the object for the command
* @param option
*
*/
set(directParameter: any, option?: DatabaseEvents.SetOptionalParameter): void
set(directParameter: any, option?: DatabaseEvents.SetOptionalParameter): void;
}
38 changes: 19 additions & 19 deletions packages/@jxa/types/src/core/DvdPlayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,131 +31,131 @@ export interface DvdPlayer {
* @return returns DVD Player error code
*/
fastForwardDvd(): number
fastForwardDvd(): number;

/**
* Start playback of a DVD disc
* @return returns DVD Player error code
*/
playDvd(): number
playDvd(): number;

/**
* Pause the playback of a DVD disc
* @return returns DVD Player error code
*/
pauseDvd(): number
pauseDvd(): number;

/**
* Start rewinding a DVD disc
* @return returns DVD Player error code
*/
rewindDvd(): number
rewindDvd(): number;

/**
* Stop the playback of a DVD disc
* @return returns DVD Player error code
*/
stopDvd(): number
stopDvd(): number;

/**
* Step the dvd movie to the next frame
* @return returns DVD Player error code
*/
stepDvd(): number
stepDvd(): number;

/**
* Go to the specified place
* @param directParameter undefined
* @return returns DVD Player error code
*/
go(directParameter: any, ): number
go(directParameter: any, ): number;

/**
* Press a key in a menu
* @param directParameter undefined
* @return returns DVD Player error code
*/
press(directParameter: any, ): number
press(directParameter: any, ): number;

/**
* open a VIDEO_TS folder for playing dvd from file
* @param directParameter file reference to VIDEO_TS folder
* @return returns DVD Player error code
*/
openVIDEOTs(directParameter: any, ): number
openVIDEOTs(directParameter: any, ): number;

/**
* open a dvd video folder (VIDEO_TS or HVDVD_TS) folder for playing dvd from file
* @param directParameter file reference to VIDEO_TS or HVDVD_TS folder
* @return returns DVD Player error code
*/
openDvdVideoFolder(directParameter: any, ): number
openDvdVideoFolder(directParameter: any, ): number;

/**
* Play the previous chapter of the current title
* @return returns DVD Player error code
*/
playPreviousChapter(): number
playPreviousChapter(): number;

/**
* Play the next chapter of the current title
* @return returns DVD Player error code
*/
playNextChapter(): number
playNextChapter(): number;

/**
* Specify the bookmark to play by index
* @param directParameter The index of the bookmark
* @return returns DVD Player error code
*/
playBookmark(directParameter: number, ): number
playBookmark(directParameter: number, ): number;

/**
* Specify the bookmark to play by name
* @param directParameter The name of the bookmark
* @return returns DVD Player error code
*/
playNamedBookmark(directParameter: string, ): number
playNamedBookmark(directParameter: string, ): number;

/**
* Specify the video clip to play by index
* @param directParameter The index of the video clip
* @return returns DVD Player error code
*/
playVideoClip(directParameter: number, ): number
playVideoClip(directParameter: number, ): number;

/**
* Specify the video clip to play by name
* @param directParameter The name of the video clip
* @return returns DVD Player error code
*/
playNamedVideoClip(directParameter: string, ): number
playNamedVideoClip(directParameter: string, ): number;

/**
* Exit video clip mode if currently playing a video clip
* @return returns DVD Player error code
*/
exitClipMode(): number
exitClipMode(): number;

/**
* obscure the mouse cursor
* @return returns DVD Player error code
*/
obscureCursor(): number
obscureCursor(): number;

/**
* eject the dvd we are using
* @return returns DVD Player error code
*/
ejectDvd(): number
ejectDvd(): number;
}
Loading

0 comments on commit bd758e8

Please sign in to comment.