chore(ask): reorganize docs and fix repo checks
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { AskParams } from "../types.ts";
|
||||
import { normalizeQuestions } from "./normalize.ts";
|
||||
import { createInitialState as createBaseState } from "./transitions.ts";
|
||||
|
||||
export function createInitialState(params: AskParams) {
|
||||
return createBaseState({
|
||||
title: params.title,
|
||||
questions: normalizeQuestions(params),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user