@workadventure/iframe-api-typings
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
import { Subscription } from "rxjs"; | ||
import { IframeApiContribution } from "./IframeApiContribution"; | ||
@@ -32,6 +33,7 @@ export declare class WorkadventureChatCommands extends IframeApiContribution<WorkadventureChatCommands> { | ||
* @param {function(string): void} callback Function that will be called when a message is received. It contains the message typed by the user | ||
* @return {Subscription} Subscription to the chat message. Call ".unsubscribe()" to stop listening to the chat. | ||
*/ | ||
onChatMessage(callback: (message: string) => void): void; | ||
onChatMessage(callback: (message: string) => void): Subscription; | ||
} | ||
declare const _default: WorkadventureChatCommands; | ||
export default _default; |
@@ -0,1 +1,2 @@ | ||
import { Subscription } from "rxjs"; | ||
import type { HasPlayerMovedEventCallback } from "../Events/HasPlayerMovedEvent"; | ||
@@ -89,4 +90,5 @@ import { IframeApiContribution } from "./IframeApiContribution"; | ||
* @param {HasPlayerMovedEventCallback} callback Function that will be called when the current player is moving. It contains the event | ||
* @return {Subscription} Subscription to the stream. Use ".unsubscribe()" to stop listening. | ||
*/ | ||
onPlayerMove(callback: HasPlayerMovedEventCallback): void; | ||
onPlayerMove(callback: HasPlayerMovedEventCallback): Subscription; | ||
/** | ||
@@ -93,0 +95,0 @@ * Player will try to find the shortest path to the destination point and proceed to move there. |
import type { Observable } from "rxjs"; | ||
import { Subscription } from "rxjs"; | ||
import type { ITiledMap } from "@workadventure/tiled-map-type-guard"; | ||
@@ -39,7 +40,7 @@ import { IframeApiContribution } from "./IframeApiContribution"; | ||
*/ | ||
onEnterZone(name: string, callback: () => void): void; | ||
onEnterZone(name: string, callback: () => void): Subscription; | ||
/** | ||
* @deprecated Use onLeaveLayer instead | ||
*/ | ||
onLeaveZone(name: string, callback: () => void): void; | ||
onLeaveZone(name: string, callback: () => void): Subscription; | ||
/** | ||
@@ -46,0 +47,0 @@ * Listens to the position of the current user. The event is triggered when the user enters a given layer. |
{ | ||
"name": "@workadventure/iframe-api-typings", | ||
"version": "v1.17.6", | ||
"version": "v1.17.7", | ||
"description": "Typescript typings for WorkAdventure iFrame API", | ||
@@ -5,0 +5,0 @@ "main": "iframe_api.js", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
222003
0.16%7004
0.07%