This commit is contained in:
syuilo
2018-12-19 11:16:29 +09:00
parent 556677be7a
commit 00f979f0e6
5 changed files with 34 additions and 16 deletions

View File

@ -11,6 +11,15 @@ export type Node = {
props?: any;
};
export interface IMentionNode extends Node {
props: {
canonical: string;
username: string;
host: string;
acct: string;
};
}
function _makeNode(name: string, children?: Node[], props?: any): Node {
return children ? {
name,