Merge pull request #3610 from RocketChat/chore/migration-ts-redux-deep-linking
Chore: Migrate redux action deepLink to Typescript
This commit is contained in:
commit
4109767a72
|
@ -1,8 +0,0 @@
|
||||||
import * as types from './actionsTypes';
|
|
||||||
|
|
||||||
export function deepLinkingOpen(params) {
|
|
||||||
return {
|
|
||||||
type: types.DEEP_LINKING.OPEN,
|
|
||||||
params
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
import { Action } from 'redux';
|
||||||
|
|
||||||
|
import { DEEP_LINKING } from './actionsTypes';
|
||||||
|
|
||||||
|
interface IParams {
|
||||||
|
path: string;
|
||||||
|
rid: string;
|
||||||
|
messageId: string;
|
||||||
|
host: string;
|
||||||
|
isCall: boolean;
|
||||||
|
fullURL: string;
|
||||||
|
type: string;
|
||||||
|
token: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IDeepLinkingOpen extends Action {
|
||||||
|
params: Partial<IParams>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function deepLinkingOpen(params: Partial<IParams>): IDeepLinkingOpen {
|
||||||
|
return {
|
||||||
|
type: DEEP_LINKING.OPEN,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue