mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-26 02:03:44 +03:00
13 lines
301 B
TypeScript
13 lines
301 B
TypeScript
import { INode } from "../../store/reducers/nodesInputReducer";
|
|
import { fetcher } from "./fetch";
|
|
|
|
|
|
export default async (word: string, hints:INode[]) => {
|
|
|
|
const data = await fetcher.post('/autocomplete_schema', {
|
|
content: word,
|
|
exclude: []
|
|
});
|
|
return data.data.nodes;
|
|
}
|