Skip to content

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Sep 12, 2019

This enables update for web.

export interface IUpdate {
	version: string;
}

export interface IUpdateProvider {

	/**
	 * Should return with the `IUpdate` object if an update is
	 * available or `null` otherwise to signal that there are
	 * no updates.
	 */
	checkForUpdate(): Promise<IUpdate | null>;
}

Introduces a new API for web: IUpdateProvider

//cc @joaomoreno most of your code was possible to be moved to browser

@bpasero bpasero self-assigned this Sep 12, 2019
@bpasero bpasero added this to the September 2019 milestone Sep 12, 2019
@bpasero bpasero merged commit f6df256 into master Sep 12, 2019
@bpasero bpasero deleted the ben/web-update branch September 12, 2019 15:53
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant