Let $X$ be a $\mathbb{K}$-linear space. $E\subseteq X$. Then $E$ is a basis of $X$ $\iff$ for every $\mathbb{K}$-linear space $Y$ and for every $f:E\rightarrow Y$, there exists a unique $\mathbb{K}$-linear extension $T:X\rightarrow Y$ of $f$.
Is the Hahn-Banach extension theorem is to be used? But I know it for only functional not for maps between spaces.