Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Fixed errors in API type definitions #4056

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/scripting-doc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Tiled can be extended with the use of JavaScript.
*
* Scripts can be used to implement {@link tiled.registerMapFormat | custom map formats},
* {@link tiled.registerAction | custom actions} and {@link tiled.registerTool | new tools}.
* {@link tiled.registerAction | custom actions}, and {@link tiled.registerTool | new tools}.
* Scripts can also {@link Signal | automate actions based on signals}.
*
* See the [Tiled Manual](https://doc.mapeditor.org/en/stable/manual/scripting) for more information on writing or installing extensions.
Expand Down Expand Up @@ -415,7 +415,7 @@ declare namespace Qt {
* Can be created with {@link tiled.cursor} and assigned to {@link
* Tool.cursor}.
*/
class QCursor {};
class QCursor {}

/**
* The base type from which all Qt widgets derive.
Expand Down Expand Up @@ -3904,7 +3904,7 @@ interface TileCollisionEditor {
view : MapView

/**
* Focuses the given object in the collision editor view and makes sure its
* Focuses the given object in the collision editor view and makes sure it is
* visible in its objects list. Does not automatically select the object.
*/
focusObject(object : MapObject) : void
Expand Down Expand Up @@ -4652,14 +4652,14 @@ declare namespace tiled {
*
* @since 1.11.1
*/
export function cursor(shape: Qt.CursorShape): Cursor;
export function cursor(shape: Qt.CursorShape): Qt.QCursor;

/**
* Creates a cursor with the given image and the optional hotspot.
*
* @since 1.11.1
*/
export function cursor(image: Image, hotX?: number, hotY?: number): Cursor;
export function cursor(image: Image, hotX?: number, hotY?: number): Qt.QCursor;

/**
* Registers a new map format that can then be used to open and/or save
Expand Down